package com.ld.campus_help.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ld.campus_help.entity.School;
import com.ld.campus_help.service.SchoolService;
import com.ld.campus_help.mapper.SchoolMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
* @author 10937
* @description 针对表【school】的数据库操作Service实现
* @createDate 2023-08-28 19:07:03
*/
@Service
public class SchoolServiceImpl extends ServiceImpl<SchoolMapper, School>
    implements SchoolService{

    @Autowired
    private SchoolMapper schoolMapper;

    @Override
    public List getList() {
        QueryWrapper<School> queryWrapper = new QueryWrapper<>();
        return schoolMapper.selectList(queryWrapper);
    }
}




